package org.csu.pm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.pm.common.BaseResponse;
import org.csu.pm.entity.Room;

import java.util.List;

/**
 * @author kwanho
 * @description 针对表【room】的数据库操作Service
 * @createDate 2022-11-11 20:16:25
 */
public interface RoomService extends IService<Room> {

    BaseResponse<Room> getRoomById(Long id);

    BaseResponse<List<Room>> getRoomList();

    BaseResponse<Room> updateRoom(Room room, Long id, Long userId);

    BaseResponse<Room> createRoom(Room room, Long id, Long userId);

    BaseResponse<String> deleteRoomById(Long id, Long userId);

    BaseResponse<String> changeRoomStatus(Long id, Long userId);
}
